package com.zy.mydemo.api.controller;

import com.zy.mydemo.api.service.RoleService;
import com.zy.mydemo.common.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:zhongyong
 * @Description：
 * @Date：Create in 2020/05/11
 */
@RestController
@RequestMapping("api/role")
public class RoleController {

    @Autowired
    RoleService roleService;

    @RequestMapping("/getRoleList")
    public String getRoleList() {
        ResultUtils res = roleService.getList();
        return res.toString();
    }
}
